package xyz.xmh.pattern.j2ee.compositeentitypattern;

/**
 * @author Administrator
 * <p>
 * 组合实体
 */
public class CompositeEntity {

    private final CoarseGrainedObject coarseGrainedObject = new CoarseGrainedObject();

    public void setData(String data1, String data2) {
        coarseGrainedObject.setData(data1, data2);
    }

    public String[] getData() {
        return coarseGrainedObject.getData();
    }
}
